Skip to content

[Integration-Test] Enhance pre-update profile action to support modifying user claims#27966

Draft
Lashen1227 wants to merge 1 commit into
wso2:masterfrom
Lashen1227:test/pre-profile-update-claims
Draft

[Integration-Test] Enhance pre-update profile action to support modifying user claims#27966
Lashen1227 wants to merge 1 commit into
wso2:masterfrom
Lashen1227:test/pre-profile-update-claims

Conversation

@Lashen1227

Copy link
Copy Markdown
Contributor

This pull request enhances the pre-update profile action integration tests by adding support for testing claim modification operations, expanding the test data and utility methods, and improving test coverage for user claim operations. The changes primarily focus on enabling more comprehensive testing of claim add, remove, and replace operations during the pre-update profile flow.

Enhancements to integration tests:

  • Modified the test initialization in PreUpdateProfileActionSuccessTestCase to use the new attribute list and a specialized mock response for claim modification operations.
  • Added a new test method, testActionResponseClaimModificationOperations, to verify that the pre-update profile action can correctly modify user claims, and implemented supporting assertion logic.
  • Improved assertions for user claim updates by introducing a helper method to retrieve claims by URI and refactoring existing test methods for clarity and completeness.

Test data updates:

  • Added a new mock response file, pre-update-profile-claim-modification-response.json, to simulate a variety of claim modification operations (add, remove, replace) in the pre-update profile flow.

Related PRs

First need to merge these PRs to the main branch before merge this

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: afdd6c41-c82e-4a83-8ace-c13d7cb68e0a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant